/*
 * @description  : 案件-大案快报 service
 * @descriptionDetail: 案件-大案快报 service
 * @copyright    : 浙江烟草
 * @author       : sy
 * @create       : 2022-07-15 15:43:11
 */
import apiUrl from '@/common/api_urls/case';
import reqHelper from '@/common/reqHelper';
import queryParams from "@/uview-ui/libs/function/queryParams.js";

export default {
  
  /**
   * 大案快报列表
   * @param {Object} param
   */
  bigCaseApplyPage(param, orgUuid){
    let header = {};
    header.menuCode = "";
    return reqHelper.postJson(param, apiUrl.bigCase.bigCaseApplyPage,header);
  },
  
  /**
   * 获取表单内容
   */
  getDoc(param){
    return reqHelper.postForm(param, apiUrl.bigCase.getDoc);
  },

  canAdd(param){
    return reqHelper.postForm(param, apiUrl.bigCase.canAdd);
  },
  getNetCaseList(param){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson(param, apiUrl.bigCase.getNetCaseList,header);
  },
  /**
   * 保存文书
   * @param {Object} param
   */
  saveDoc(param, apendUrl){
    return reqHelper.postJson(param, apiUrl.bigCase.saveDoc + apendUrl);
  },
  /**
   * 提交
   */
  submitDoc(param, apendUrl){
    return reqHelper.postJson(param, apiUrl.bigCase.submitDoc + apendUrl);
  },
  delBigCaseApply(param){
    return reqHelper.postForm(param, apiUrl.bigCase.delBigCaseApply);
  },
  updateById(param){
    return reqHelper.postForm(param, apiUrl.bigCase.updateById);
  },
  // 检查改案件是否已经被关联过
  checkCaseRepeat(param, ext){
    let appendUrl = queryParams(ext);
    let header = {};
    header.menuCode = "";
    return reqHelper.postJson(param, apiUrl.bigCase.checkCaseRepeat + appendUrl + "&menuCode=", header);
  },
};
